var fixedBanner = {};
var pass="";
fixedBanner.ele = document.getElementById('floater');
fixedBanner.top = 0;

/*DO NOT MODIFY*/

if ((screen.width <= 600) && (screen.height <= 200)){
var pass=false;
	} else{
var pass=true;
		}
fixedBanner.y = 0;
fixedBanner.getPagePosition = function(){
	var y;
	if (document.documentElement && document.documentElement.scrollTop)
	{
		y = document.documentElement.scrollTop;
	}else if(document.body){
		y = document.body.scrollTop;
	}
	else{
		y = document.getElementsByTagName('body')[0].scrollTop;
	}
	return y;
}
fixedBanner.setPosition = function(){
	if(pass==false)
	{
	fixedBanner.ele.style.display="none";
		return;
		}
	var z = fixedBanner.getPagePosition();
	if(fixedBanner.y != z){
		z = fixedBanner.y + (z - fixedBanner.y)/2 + fixedBanner.top;
		fixedBanner.ele.style.top = z + 'px';
		fixedBanner.y = z;
	}
}
setInterval(fixedBanner.setPosition,1);